import { ys } from "ys-ts";

export let nameApiAxios: string;

export function initAxios() {
  nameApiAxios = "api";
  ys.getAxios(nameApiAxios, {
    baseURL: "http://127.0.0.1:9000/api/v0",
    timeout: 60 * 1000, // Timeout
    withCredentials: true, // Check cross-site Access-Control
  });
}
